class: center, middle, inverse, title-slide # Visualise raster data with leaflet --- layout: true <div class="dk-footer"> <span> <a href="https://rfortherestofus.com/" target="_blank">R for the Rest of Us </a> </span> </div> --- class: center, middle, dk-section-title background-image:url("https://images.pexels.com/photos/23781/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") background-size: cover # Visualise raster data with leaflet --- # {leaflet} and raster GIS The {leaflet} package can natively visualise {raster} datasets. However, you'll need to use the {leafem} package to visualise {stars} datasets. --- ### Categorical legends for raster GIS in {leaflet} Because raster GIS objects contain numeric values we need to put some coding effort into creating categorical legends. e.g when we extract values from a raster they are always numeric: ```r unique(values(alaska_landuse)) ```